{#
    basic/relations.html
    ~~~~~~~~~~~~~~~~~~~~

    Sphinx sidebar template: relation links.

    :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    
    Removes relations on specified pages.
    To hide, set in a field list at the top as:
    
:hide-relations: true

#}

{%- set hiderel = '' %}
{%- set hiderel_key = 'hide-relations' %}
{%- if meta is defined %}
    {%- if hiderel_key in meta %}
        {%- set hiderel = meta[hiderel_key] %}
    {%- endif %}
{%- endif %}
{%- if not hiderel %}
{%- if prev or next %}
  <h4>{{ _('Topics') }}</h4>
  <ul>
  {%- if prev %}
  <li class="topless"><i>{{ _('Previous:') }}</i> <a href="{{ prev.link|e }}"
                        title="{{ _('Previous Topic') }}">{{ prev.title }}</a></li>
  {%- endif %}
  {%- if next %}
  <li class="topless"><i>{{ _('Next:') }}</i> <a href="{{ next.link|e }}"
                        title="{{ _('Next Topic') }}">{{ next.title }}</a></li>
  {%- endif %}
  </ul>
{%- endif %}
{%- endif %}
